package com.qqtech.qquan.send.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.send.dao.SendDeliveryUserDao;
import com.qqtech.qquan.send.model.*;

@Service
public class SendDeliveryUserServiceImpl extends BaseServiceImpl<SendDeliveryUser>
		implements SendDeliveryUserService {
	public static final Logger log = LoggerFactory.getLogger(SendDeliveryUserServiceImpl.class);
	
	@Resource
	private SendDeliveryUserDao sendDeliveryUserDao;

	@Override
	protected BaseDao<SendDeliveryUser> getBaseDao() {
		return sendDeliveryUserDao;
	}
	
	@Override
	public SendDeliveryUser getByUserId(java.lang.Integer userId) {
		return sendDeliveryUserDao.getByUserId(userId);
	}

	@Override
	public Page<SendDeliveryUserVo> queryPageListByAdmin(
			SendDeliveryUser query, Pageable pageable) {
		return sendDeliveryUserDao.queryPageListByAdmin(query, pageable);
	}	
}